package com.topisv.tms.web.phone;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.topisv.tms.entity.EdiOrder;
import com.topisv.tms.webservice.soap.sf.IserviceImpl;
import com.topisv.tms.webservice.soap.sf.vo.CreateSFVO;
@Controller
@RequestMapping(value = "/phone")
public class PhoneSF {

	//@Autowired
	private IserviceImpl iserviceImpl;
	
	private static EdiOrder e=new EdiOrder();
	//@RequestMapping(value = "createOrdeno")
	public void test(){
		 e.setOrdeno("PD"+System.currentTimeMillis());
		 e.setRecena("陈砚庭");
		 e.setTeleph("13421338270");
		 e.setAddres("广东省深圳市罗湖区罗湖科技大厦");
		 e.setProvna("广东省");
		 e.setCityna("深圳市");
		 //CreateSFVO createSFVO=iserviceImpl.createOrder(e);//创建订单
		 
		 String xml=iserviceImpl.createOrder2(e);//创建订单
		
	     //取消订单
		// iserviceImpl.confirmCancelOrdeno(e);
			
		 //查询订单
	     iserviceImpl.searchOrdeno(e.getOrdeno());
				
	     //筛单可以不使用
		iserviceImpl.filterOrdeno(e);
		
		//订单路由查询
		iserviceImpl.routeOrdeno(e.getOrdeno());
	}
	
	public static void main(String[] args)
	{
		
	}
}
